/**
 * @Date 2023-02-21 16:23:31
 * @Remark
 */

// lib
import { makeAutoObservable, toJS } from "mobx";
// config
// script & methods & public
// controller
// interface";
// 其它

class StatePermissionModal {
  modal: RoleDto | null = null;
  modalLoading = false;
  // Transfer
  targetKeys: string[] = [];
  constructor() {
    makeAutoObservable(this);
  }
  getModal() {
    return toJS(this.modal);
  }
  getTargetKeys() {
    return toJS(this.targetKeys);
  }
}

export const statePermissionModal = new StatePermissionModal();
